package com.jiangkang.websocket.controller;


import com.jiangkang.websocket.server.WebSocket;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author
 * @since 2020-08-13
 */
@Slf4j
@RestController
@RequestMapping("/v1/test")
public class TestController {


    @Resource
    WebSocket webSocket;



    @GetMapping("websocket")
    public String websocket() {
        webSocket.AppointSending("test","first-websocket");
        return "success";
    }





}
